import requests
url = 'https://fanyi.baidu.com/sug'
keyword = input('请输入需要翻译的单词：')
data = {'kw':keyword}
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'}
response= requests.post(url=url,data=data,headers=headers)
print(response.content.decode('unicode_escape'))

